package com.yeswater.multithread.chapter1.test1_2.test1_2_2;

import java.util.concurrent.TimeUnit;

/**
 * author : yeswater
 * date : 2023/10/18
 */

public class Run3 {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            new Thread() {
                @Override
                public void run() {
                    try {
                        TimeUnit.SECONDS.sleep(500);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }.start();
        }
    }
}
